package com.zl.basic.dao;

import com.zl.basic.model.Pager;
import com.zl.basic.model.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * User: zl email:c3tc3tc3t@126.com Date: 14-1-11 Time: 下午12:02
 */
@Repository("userDao")
public class UserDao extends BaseDao<User> implements IUserDao {
  @Override
  public List<User> listUserBySql(String sql, Object[] args, Class<User> clz, boolean hasEntity) {
    return super.listBySql(sql, args, clz, hasEntity);
  }

  @Override
  public List<User> listUserBySql(String sql, Object[] args, Map<String, Object> alias,
      Class<User> clz, boolean hasEntity) {
    return super.listBySql(sql, args, alias, clz, hasEntity);
  }

  @Override
  public Pager<User> findUserBySql(String sql, Object[] args, Class<User> clz, boolean hasEntity) {
    return super.findBySql(sql, args, clz, hasEntity);
  }

  @Override
  public Pager<User> findUserBySql(String sql, Object[] args, Map<String, Object> alias,
      Class<User> clz, boolean hasEntity) {
    return super.findBySql(sql, args, alias, clz, hasEntity);
  }
}
